import request from "../utils/request";

const prefix="/resource-service/resource"

export function listResource(id){
    return request({
        url:prefix.concat("/list/",id),
        method:'get',
    })
}
export function listByParam(param){
    return request({
        url:prefix.concat("/list/param"),
        data:param,
        method:'post',
    })
}
export function detailResource(id){
    return request({
        url: prefix.concat("/detail/",id),
        method:'get'
    })
}

export function pageResource(param){
    return request({
        url:prefix.concat('/page'),
        method:'post',
        data:param
    })
}
